Home | Miscellaneous | Pi | TeamViewer
Sonora Computer Repair
A subsidiary of Charles Varvayanis

Since 1990
(209) 586-3782
charles@varvayanis.com
Raspberry Pi TeamViewer Setup
Step-by-step instructions for setting up TeamViewer on a Raspberry Pi.
These procedures apply to Raspberry Pi 5, 4 or 3 with Raspberry Pi OS (64-Bit), (32-Bit) or (Legacy, 32-Bit).
General Notes
1. General:
The procedures below are optimized for setting up TeamViewer on a Raspberry Pi 5, 4 or 3 with Raspberry Pi OS (64-Bit), (32-Bit) or (Legacy, 32-Bit).
2. Internet access during setup:
Many of the steps below assume and require the target Raspberry Pi is connected to a network with access to the Internet.
3. Important note about Raspberry Pi Connect and TeamViewer:
Both screen sharing programs can exist on a Raspberry Pi without interfering with each other,
but the Raspberry Pi Connect screen sharing program requires Wayland (Remote Graphics Support A.K.A. compositor) and TeamViewer currently uses only the older X11 (compositor).
Raspberry Pi Connect Remote shell does not use the compositor and will work with either compositor in use.
It is posable to switch between Wayland and X11, however a reboot may be required.
Raspberry Pi Connect is recommended for typical users, while TeamViewer may be more attractive to more experienced users.
Notice about updates, upgrades and installations failing due to repository or network congestion or outages
Occasionally updates, upgrades and installations fail due to repository or network congestion or outages.
Sometimes there is an appropriate message saying as such, sometimes a missing file is reported, and sometimes there is just a failure message without an explanation.
When this occurs, simply run the command again.
If that does not solve the issues immediately, try again later.
Raspberry Pi OS Documentation
https://www.raspberrypi.com/documentation/computers/os.html
Connect to the target Raspberry Pi
Via Raspberry Pi Connect Remote shell or Raspberry Pi Connect Screen share then open a Terminal window.
https://www.raspberrypi.com/software/connect
- or -
Via a Display, Keyboard and Mouse, then open a Terminal window.
- or -
Via SSH
Determine the target Raspberry Pi IP Address:
Via Raspberry Pi Connect Remote shell or Raspberry Pi Connect Screen share then open a Terminal window.
https://www.raspberrypi.com/software/connect
sudo hostname -I
- or -
Connect directly to the target Raspberry Pi via a Display, Keyboard and Mouse, then open a Terminal window.
sudo hostname -I
- or -
Use an IP Scanner tool such as Advanced IP Scanner on a PC or alike to locate the DHCP IP Address assigned to the Raspberry Pi.
https://www.advanced-ip-scanner.com
- or -
Login to your router and examine the DHCP assignments, sometimes labeled "Connected Devices" or similar.
Use SSH via a tool such as PuTTY to connect to the Raspberry Pi.
https://putty.software/
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
https://www.putty.org
Connect using the IP address determined above or URL of the target Raspberry Pi.
Note: The first time a connection is made, a security warning may be displayed | Yes
Install and configure TeamViewer
See "General Notes" 3. near the top of this document.
Install TeamViewer
Update Raspberry Pi OS and Components
Download latest package lists
sudo apt-get update -y
Download and install updated listed packages
sudo apt-get upgrade -y
Download and install TeamViewer - Select one of the four configurations below:
1) TeamViewer Full Client installation with a 64-Bit OS:
Download TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer_arm64.deb
Install TeamViewer (Note: Errors during installation are normal and can usually be ignored)
sudo dpkg -i teamviewer_arm64.deb
2) TeamViewer Full Client installation with a 32-Bit OS:
Download TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer_armhf.deb
Install TeamViewer (Note: Errors during installation are normal and can usually be ignored)
sudo dpkg -i teamviewer_armhf.deb
3) TeamViewer Host installation with a 64-Bit OS:
Download TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer-host_arm64.deb
Install TeamViewer (Note: Errors during installation are normal and can usually be ignored)
sudo dpkg -i teamviewer-host_arm64.deb
4) TeamViewer Host installation with a 32-Bit OS:
Download TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb
Install TeamViewer (Note: Errors during installation are normal and can usually be ignored)
sudo dpkg -i teamviewer-host_armhf.deb
Download and install additional OS components needed by TeamViewer - This corrects for the errors above, if any.
sudo apt --fix-broken install -y
Update Raspberry Pi OS and Components
Download latest package lists
sudo apt-get update -y
Download and install updated listed packages
sudo apt-get upgrade -y
Configure TeamViewer
Set the TeamViewer password
sudo teamviewer passwd <DefineYourTeamViewerPassword>
Example:
sudo teamviewer passwd MyPassword
Ensure the TeamViewer service has started
sudo teamviewer --daemon start
Accept TeamViewer Licensing only, but do no additional configuration from this setup tool
sudo teamviewer setup
Are you a resident of the Republic of Korea? (y/n) | n
Accept License Agreement? (y/n) | y
Abort the TeamViewer setup at this poit by pressing Control-C (Pressing the "Control" key and "C" key at the same time).
Obtain and record the TeamViewer ID (Note: This only provides the TeamViewer ID if it is connected to the Internet)
sudo teamviewer info
The TeamViewer ID is displayed twice near the top of the TeamViewer information. Record the TeamViewer ID for you records.
Disable Wayland (Remote Graphics Support) and switch to the older X11 (Remote Graphics Support) because TeamViewer does not yet work with Wayland (Note: Wayland is not enabled on Raspberry Pi OS (Legacy) by default)
sudo raspi-config
Advance Options | [Enter] | Wayland | [Enter] | X11 | [Enter] | Ok | [Enter] | Finish | [Enter] | Would you like to reboot now? | Yes | [Enter]
Reboot the Raspberry Pi to get TeamViewer working. Note: "sudo teamviewer --daemon restart" or "sudo systemctl restart teamviewerd" do not get TeamViewer working
sudo reboot
Since TeamViewer should now be working, a connection to the Raspberry Pi GUI should be possible via the TeamViewer client by using the TeamViewer ID of the target Raspberry Pi, obtained above.
Set TeamViewer to accept incoming LAN connections, i.e., add the additional methods of connecting to TeamViewer via IP address or URL (Optional):
Using TeamViewer from another machine, connect to the Raspberry Pi using the TeamViewer ID of the target Raspberry Pi, obtained in the section above.
- or -
Connect directly to the target Raspberry Pi via a Display, Keyboard and Mouse, then open a Terminal window.
From the Raspberry Pi GUI open TeamViewer by clicking on the TeamViewer icon in the right side of the Task Bar at the top of the Raspberry Pi desktop.
Close or cancel any windows that appear asking for Username and/or password.
Click on "Extras" in the left side of the TeamViewer Menu Bar at the top of the TeamViewer window.
Click on "Options". It opens to the "General" window.
In the "General" window, click on the "Incoming LAN connections" drop down list and select "accept".
Click on the "Close" Button
Reboot required for Raspberry Pi 4 and 5. When this is displayed: "The changes you have made require the Raspberry Pi to be rebooted to take effect. Would you like to reboot now?" | Yes
Connect to the target Raspberry Pi via TeamViewer
Use TeamViewer to connect to the Raspberry Pi
https://www.teamviewer.com
Connect using the TeamViewer ID, IP address or URL of the target Raspberry Pi.
Remove packages that were automatically installed and are no longer required
Occasionally excess update, upgrade and installation packages install automatically, but are no longer required and can be removed automatically.
Automatically detect and remove packages no longer required
sudo apt autoremove -y
Sonora Computer Repair
Sonora, CA 95370
e-mail: charles@varvayanis.com
Phone: (209) 586-3782
Fax: (209) 586-3761
Business Card (PDF 153 KB) 
www.sonoracomputer.com

© 2026 Charles Varvayanis
All rights reserved